package com.aaa.mrcai.mapper;

import com.aaa.mrcai.pojo.entity.GoodsBrand;
import com.aaa.mrcai.pojo.vo.GoodsBrandVo;
import com.aaa.mrcai.query.GoodsBrandQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Demo class
 *
 * @Author: Wang
 * @Date: Created in 0:08 2021/12/7
 */
public interface GoodsBrandMapper {
    List<GoodsBrand> queryGoodsBrand(GoodsBrandQuery query);

    Long queryGoodsBrandTotalCount(GoodsBrandQuery query);

    Long isGoodsBrandExists(@Param("btype") String btype);

    int addGoodsBrand(GoodsBrandVo goodsBrandVo);

    GoodsBrandVo getGoodsBrand(int id);

    int deleteGoodsBrand(int id);

    long isUpdateGoodsBrandExists(GoodsBrandVo goodsBrandVo);

    int updateGoodsBrand(GoodsBrandVo goodsBrandVo);}
